package com.guochao.service.impl;

import com.guochao.dao.AdminMapper;
import com.guochao.entity.Admin;
import com.guochao.service.AdminSvc;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AdminServiceIMPL implements AdminSvc {

    @Resource
    private AdminMapper adminMapper;

    @Override
    public Admin selAdmByID(Integer adminid) {
        return adminMapper.selAdmByID(adminid);
    }

    @Override
    public int checkLogin(Admin admin) {
        return adminMapper.checkLogin(admin);
    }

    @Override
    public List<Admin> getAdminList() {
        return adminMapper.getAdminList();
    }

    @Override
    public int deleteAdminById(Integer amninid) {
        return adminMapper.deleteAdminById(amninid);
    }

    @Override
    public int updateAdminById(Admin admin) {
        return adminMapper.updateAdminById(admin);
    }

    @Override
    public int addAdmin(Admin admin) {
        return adminMapper.addAdmin(admin);
    }
}
